package com.tencent.block;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.tencent.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {
    // 限流方法必须要求传入一个
    public static User findUserByIdHandler(@PathVariable("id") Long id, BlockException e){
        return new User(-1L, "限流了", "你们不要再挤了");
    }
}
